package webApp.PersonalCenter;

import java.util.Map;

import javax.servlet.http.HttpSession;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.shoeHouse.user.model.UserInfo;
import com.shoeHouse.user.service.UserInfoService;
@Controller
@RequestMapping("/PersonalCenter")
public class PersonalCenterAction {
	@Autowired 
	private UserInfoService userInfoService;
	@RequestMapping("/personalMain")
	 public String personalMain(Map<String, Object> map,HttpSession session){
	
		 UserInfo userInfo=(UserInfo) session.getAttribute("userInfo");
		 map.put("userInfo",userInfo);
		 return "/webApp/PersonalCenter/personMain.jsp";
	 }
   	
	@RequestMapping("/personalData")
	public String personalData(Map<String, Object> map,HttpSession session){
		 UserInfo userInfo=(UserInfo) session.getAttribute("userInfo");
		 map.put("userInfo",userInfo);
		
		
		return "/webApp/PersonalCenter/personalData.jsp";
		
	}
}
